
import request from '@/utils/request'

export function initDiyData() {
    return request({
        url: 'common.publics/diyData',
        method: 'GET'
    })
}
export function getLoginAuth(data:any) {
    return request({
        url: 'weapp.login/auth',
        method: 'POST',
        data
    })
}

export function uploadImage(filePath:string) {
    return request({
        url:'common.grantedPublics/uploadImage',
        filePath:filePath,
    },'upload')
}


export function uploadCacheImage(filePath:string) {
    return request({
        url:'common.publics/uploadCacheImage',
        filePath:filePath,
    },'upload')
}
